package api

import "torler.com/qingyue/apps/backend/internal/transport/http/middleware"

func (m *ApiManager) initMiddleware() {
	log := m.log
	// 在这里可以注册中间件
	m.server.Use(
		//middleware.CORSMiddleware(),
		middleware.GlobalHeaderRequireMiddleware(),
		middleware.ResponseLogMiddleware(log),
		middleware.RequestLogMiddleware(log),
		//middleware.SignMiddleware(log),
	)
}
